/*******************************************
 * Copyright 2007 Aphrodite Framework for javaME .
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v2.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 * Email : owner@aphroditeme.dev.java.net
 * Contributors:
 *     Kent Elton - initial API and implementation
 *******************************************/

/*
 * Copyright (c)  .
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * Email: owner@aphroditeme.dev.java.net
 * Contributors:
 *     Kent Elton - initial API and implementation
 */

package com.aphrodite.extns.bluetooth;

public final class Obex {
	/**
	 * Event fired when the authetication fails. The data object will be a
	 * byte[] with the username.
	 */
	public final static int EVENT_AUTHENTICATION_FAILURE = 3;

	public final static int EVENT_ERROR = 1;

	/**
	 * Event fired when the get operation is finnished The data object will the
	 * MObexObject.
	 */
	public final static int EVENT_GET_DONE = 9;

	/**
	 * Event fired when a client connects to the server. The data object will be
	 * null.
	 */
	public final static int EVENT_ON_CONNECT = 4;

	/**
	 * Event fired when a delete operation is performed. The data object will be
	 * null.
	 */
	public final static int EVENT_ON_DELETE = 5;

	/**
	 * Event fired when a client disconnects from the server. The data object
	 * will be null.
	 */
	public final static int EVENT_ON_DISCONNECT = 6;

	/**
	 * Event fired when a get operation is performed. The data object will be
	 * null.
	 */
	public final static int EVENT_ON_GET = 7;

	/**
	 * Event fired when a put operation is performed. The data object will be an
	 * string, byte[] or MObexObject.
	 */
	public final static int EVENT_ON_PUT = 2;

	/**
	 * Event fired when a seth path operation is performed. The data object will
	 * be null.
	 */
	public final static int EVENT_ON_SET_PATH = 8;

	/**
	 * Identifies a request without name. Used to send strings and byte arrays
	 */
	public final static String NO_NAME = "NO_NAME";

	/**
	 * Mime type for the byte array
	 */
	public final static String TYPE_BINARY = "application/octet-stream";

	/**
	 * Mime Type for the strings
	 */
	public final static String TYPE_TEXT = "text/plain";
}
